package com.demo.service.impl;

import com.demo.entity.Carousel;
import com.demo.entity.RoleMenu;
import com.demo.mapper.CarouselMapper;
import com.demo.mapper.RoleMenuMapper;
import com.demo.service.CarouselService;
import com.demo.service.RoleMenuService;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CarouselServiceImpl implements CarouselService {
    @Autowired
    private CarouselMapper mapper;

    @Override
    public List<Carousel> findAllCarousel() {
        return mapper.findAllCarousel();
    }

    @Override
    public int insertCarousel(String imgPath) {
        return mapper.insertCarousel(imgPath);
    }

    @Override
    public int deleteCarousel(int carouselId) {
        return mapper.deleteCarousel(carouselId);
    }
}
